package com.derbysoft.dswitch.adapter.ihg.web.action.admin.reservation;

import com.derbysoft.dswitch.adapter.ihg.common.domain.Reservation;
import com.derbysoft.dswitch.adapter.ihg.common.domain.ReservationItem;

/**
 * Created by: jason
 * Date: 2012-06-05
 */
public final class ReservationInfo {
    private Reservation reservation;
    private ReservationItem reservationItem;

    private ReservationInfo(Reservation reservation, ReservationItem reservationItem) {
        this.reservation = reservation;
        this.reservationItem = reservationItem;
    }

    public static ReservationInfo of(Reservation reservation, ReservationItem reservationItem) {
        return new ReservationInfo(reservation, reservationItem);
    }

    public Reservation getReservation() {
        return reservation;
    }

    public ReservationItem getReservationItem() {
        return reservationItem;
    }
}
